import pytest


@pytest.fixture(scope='session')
def login():
    print("用户登录")
    yield
    print("用户退出登录")

@pytest.fixture(scope='session')
def db():
    print("连接数据库")
    yield
    print("断开数据库连接")